<?php

use yii\db\Schema;
use yii\db\Migration;

class m170525_033938_add_ad_network_status_field extends Migration
{
    public function up()
    {
        $this->addColumn('{{%ad_network}}', 'status', 'int(1) not null default 1 comment " 1 for active, 0 disactive, 2 for pending" after ad_network_type');
    }

    public function down()
    {
        echo "m170525_033938_add_ad_network_status_field cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
